package day_13;

import java.io.File;

public class TestFile {
    public static void main(String[] args) {

        File file = new File("D:\\java\\1.txt");

        System.out.println(file.length());
        System.out.println(file.exists());
        System.out.println(file.isFile());//true
        System.out.println(file.isDirectory());//
        System.out.println(file.getName());
        System.out.println(file.getParent());
        System.out.println(file.getAbsolutePath());
    }
}
